﻿﻿using System;
using System.Collections.Generic;
using System.Web;
namespace WebMvc.App.Models.Tips.Common
{
    public class sms_template
    {
		public string id=null;
		public string tpl_id=null;
		public string app_id=null;
		public string app_secret=null;
		public string access_token=null;
		public string expire=null;
		public string name=null;
		public string content=null;
        public string __name__;
        public sms_template(string name)
        {
            this.__name__ = name;
			this.id = string.Format("{0}.id",__name__);
			this.tpl_id = string.Format("{0}.tpl_id",__name__);
			this.app_id = string.Format("{0}.app_id",__name__);
			this.app_secret = string.Format("{0}.app_secret",__name__);
			this.access_token = string.Format("{0}.access_token",__name__);
			this.expire = string.Format("{0}.expire",__name__);
			this.name = string.Format("{0}.name",__name__);
			this.content = string.Format("{0}.content",__name__);
        }
        public sms_template()
        {
			this.id = string.Format("{0}.id",__name__);
			this.tpl_id = string.Format("{0}.tpl_id",__name__);
			this.app_id = string.Format("{0}.app_id",__name__);
			this.app_secret = string.Format("{0}.app_secret",__name__);
			this.access_token = string.Format("{0}.access_token",__name__);
			this.expire = string.Format("{0}.expire",__name__);
			this.name = string.Format("{0}.name",__name__);
			this.content = string.Format("{0}.content",__name__);
        }
        public override string ToString()
        {
            if (__name__ == null)
            {
                return "sms_template";
            }
            else
            {
                return string.Format("sms_template as {0}",__name__);
            }
        }
    }
}